package org.jeecg.modules.sggg.mapper;

import java.util.List;

import com.baomidou.mybatisplus.core.metadata.IPage;
import org.apache.ibatis.annotations.Param;
import org.jeecg.modules.sggg.entity.SgSendMedicine;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

/**
 * @Description: 送药表
 * @Author: jeecg-boot
 * @Date:   2023-03-16
 * @Version: V1.0
 */
public interface SgSendMedicineMapper extends BaseMapper<SgSendMedicine> {
    IPage<SgSendMedicine> queryPageList(IPage<SgSendMedicine> page, Integer isSend, String name, String sex, String phone, String idCard, String threeTag, String userId, String roleCode, String orgCode,List<String> responsibleAgencies);

    IPage<SgSendMedicine> queryList(IPage<SgSendMedicine> page, Integer isSend, String name, String sex, String phone, String idCard, String threeTag, String userId, String roleCode, String orgCode,List<String> responsibleAgencies);

    /**
     * 查询药品发放记录
     * @param orgCode
     * @param roleCode
     * @param
     * @return
     */
    List<SgSendMedicine> getRecordList(String orgCode,String roleCode, String doctorId,List<String> responsibleAgencies);

    String queryBydoctorId(String doctorId);
}
